<@user.user_html>
	<div class="clear"></div>
	
    <div class="showmanage">
    	<input name="" type="button" class="sm" value="我的展示" style="color:#666;" onClick="window.location.href='${base}/user/show/'"/>
        <input name="" type="button" class="sm" value="管理展示"  onClick="window.location.href='${base}/user/show/index!manager'"/>
        <input name="" type="button" class="sm" value="布展展示" style="color:#666;" onClick="window.location.href='${base}/user/show/index!add'"/>
    </div>
	
	<div class="orgnavsub" id="message_list">
    	<form id="saveForm" name="saveForm" method="post" action="${base}/user/show/index!merge">
		<#if shows??>
		<#list shows as show>
        <div class="orgbox">
			<div class="orgdate"><span>${(show.showTime)!}</span></div>
			<div class="orgimg"><a href="${base}/space/show!detail?domain=${(show.space.domain)!}&id=${(show.id?c)!}"><img src="${show.cover!}" border="0" width="240px" height="180px"/></a></div>
			<h6><a href="${base}/space/show!detail?domain=${(show.space.domain)!}&id=${(show.id?c)!}">${(show.title)!}</a></h6>
			<div class="orgstatu">
				
				<span><img src="${base}/images/ico_click.gif" title="点击" />${(show.hit)!}</span>
				<em><img src="${base}/images/ico_speak.gif" title="收藏" />${(show.favoriteCount)!}</em>
			</div>
            <div class="orgmanage">
            	<input name="" type="button" class="sm" value="删除" style="color:#666;" onClick="deleteShow(${(show.id?c)!})"/>
            	<input name="" type="button" class="sm" value="评论管理" style="color:#666;" onClick="window.location.href='${base}/user/show/comment/?aid=${(show.id?c)!}'"/>
            	<#--<div><input name="" type="button" class="sm" value="编辑展示" style="color:#666;"/><input name="" type="button" class="sm" value="编辑封面" style="color:#666;"/></div>-->
                <div>
                	<input name="shows[${show.id}].myTop" value="1" <#if show.myTop==1>checked="true"</#if> type="checkbox" value="" />置 顶
                	<input name="shows[${show.id}].best" value="1" <#if show.best==1>checked="true"</#if> type="checkbox" value="" style="margin-left:50px;" />代表展示</div>
                <div><span>隐私设置:</span>
                	<select class="font12 vd_color6" name="shows[${show.id}].privacy">
						<option value="0" <#if show.privacy==0>selected="true"</#if>>公开</option>
						<option value="1" <#if show.privacy==1>selected="true"</#if>>会员可见</option>
						<option value="2" <#if show.privacy==2>selected="true"</#if>>好友可见</option>
						<option value="3" <#if show.privacy==3>selected="true"</#if>>隐藏</option>
					</select>
                
                </div>
                <div><#--<input name="" type="button" class="del"/>--></div>
            </div>
            
			<div class="clear"></div>
		</div>
        </#list>
        </#if>
        <div class="clear"></div>
        
        <div class="star_save"><input name="" type="submit" class="save" value=""/></div>
    
    	</form>
    </div>
	<script>
	function deleteShow(id) {
	if (id != "") {
		var result = confirm("确定要进行该操作吗？该操作不可逆转");
		if (result) {
			window.location = "${base}/user/show/index!delete?id=" + id;
		}
	}
}
	</script>
</@user.user_html>


